<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "../left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="添加栏目">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <div class="toolbor-module">
                                <a class="input-button" href="#" onclick="location.href='/admin/article/showSite.html'">返回</a>
                                <!--  <a class="input-button" href="addSite.html" style="line-height:24px;">添加子栏目</a> -->
                            </div>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="w750 clearfix">

                            <form action="addSite.html" method="post" name="form1" onsubmit="return check_form()">
                                <div class="valBox">
                                    <div class="top">
                                        <strong>添加栏目</strong>
                                    </div>
                                    <div class="clearfix">
                                        <ul class="title-v edit">
                                            <!--
                                            <li>
                                                <div class="title">所在栏目：</div>
                                                <div class="v">
                                                    <strong>${psite.name!"根目录"}<input type="hidden" name="pid" value="${psite.siteId!0}" /></strong>
                                                </div>
                                            </li>
                                            -->
                                            <li>
                                                <div class="title">栏目名称：</div>
                                                <div class="v">
                                                    <input type="text" align="absmiddle" name="name" value="" />
                                                    <label><input type="checkbox" name="isurl" value="1" onclick="jump_url()"  />跳转页  </label>                                                      </div>
                                            </li>
                                            <li>
                                                <div class="title">所属栏目：</div>
                                                <div class="v">
                                                    <!-- superAdmin -->
                                                    <!-- <@siteDirect name="pid" pid="0" ></@siteDirect> -->
                                                    <!-- 商户管理员 -->
                                                    <select name="pid">
                                                        <#if list??>
                                                            <option value="0">跟栏目</option>
                                                            <#list list as item>
                                                                <option value="${item.siteId}">${item.name}</option>
                                                            </#list>
                                                        </#if>
                                                    </select>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">栏目编码：</div>
                                                <div class="v"><input name="code" type="text" value="" />
                                                </div>
                                            </li>
                                            <li style="display:none" id="jump_url">
                                                <div class="title">跳转网址：</div>
                                                <div class="v">
                                                    <input type="text" name="url"  class="input_border" value="" size="30" />
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">识别ID(nid)：</div>
                                                <div class="v">
                                                    <input type="text" align="absmiddle" name="nid"  onkeyup="value=value.replace(/[^a-zA-Z_0-9]/g,'')" value=""/> 只能为字母和下划线（_）
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">状&nbsp;&nbsp;&nbsp; 态：</div>
                                                <div class="v">
                                                    <label><input type="radio" value="0" name="status" />隐藏</label>
                                                    <label><input type="radio" value="1" name="status" checked="checked" />显示</label>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">栏目类型：</div>
                                                <div class="v">
                                                    <label><input type="radio" value="0" name="style" />列表</label>
                                                    <label><input type="radio" value="1" name="style" checked="checked"/>单页文章</label>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">排列顺序：</div>
                                                <div class="v">
                                                    <input type="text" align="absmiddle" name="sort"  onkeyup="value=value.replace(/[^0-9]/g,'')" size="5" value=""/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">栏目描述：</div>
                                                <div class="v">
                                                    <textarea name="description" cols="40" rows="3" id="textarea2"></textarea>
                                                </div>
                                            </li>
                                            <script charset="utf-8" src="${request.getContextPath()}/plugins/editor/kindeditor/kindeditor-min.js"></script>
                                            <script charset="utf-8" src="${request.getContextPath()}/plugins/editor/kindeditor/lang/zh_CN.js"></script>
                                            <li>
                                                <div class="title">栏目内容：</div>
                                                <div class="v">
                                                    <#include "../../common/ueditor.html">
                                                        <@showUeditor width=680 heigth=100 id="content" name="content" content=" " />
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">上传文件：</div>
                                                <div class="v">
                                                    <input type='file' name='files' value='' size='20' id='files'>
                                                </div>
                                            </li>

                                        </ul>
                                    </div>
                                </div>

                                <div id="bottomToolbar" class="clearfix">
                                    <input type="hidden" name="actionType"  value="addSite" />
                                    <input type="submit" class="input-button post" name="submit_ok" value="提交">
                                    <input type="reset" name="reset" class="input-button reset" value="重置">
                                </div>
                            </form>
                        </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../../jsPage.html">
    </body>
</html>
